<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>airlineMessage 航司信息</title>
	</head>
	<link rel="stylesheet" href="../css/common.css" />
	<style>
		body{
			background:#f1f1f1;
		}
		header{
			padding:8px 20px 8px 0;	
			overflow:hidden;		
		}
		.add{
			width:78px;
			height:28px;
			background:#f9a61a;
			color:white;
			border:none;
			border-radius:1px;
			outline:none;
			cursor:pointer;
		}
		.right{
			float:right;
		}
		table{
			width:99%;
			margin:0 5px;
		}
		table th{
			background:#d7d7d7;
			height:35px;
		}
		table td{
			border:1px solid #e4e4e4;
			height:42px;
		}
		.iconfont{
			font-size:16px;
			color:#ff9500;
			margin:0 20px;
			cursor:pointer;
		}
		.delete{
			font-size:18px;
		}
		.handle{
			width:250px;
		}
		.countMess{
			font-size:22px;
			color:#999999;
		}
		.countMess:hover{
			color:#f9a61a;
		}
	</style>
	<body>
		<header>
			<button class="add right">添加</button>
		</header>
		<div>
			<table>
				<tr>
					<th>航司中文名</th>
					<th>二字码</th>
					<th>行位序列</th>
					<th>操作</th>
				</tr>
				<tbody class="clear">
					<tr>
						<td>国航</td>
						<td>CA</td>
						<td>123566<span class="iconfont countMess">&#xe65c;</span></td>
						<td class="handle"><span class="iconfont edit">&#xe681;</span><span class="iconfont delete">&#xe606;</span></td>
					</tr>
					<tr>
						<td>国航</td>
						<td>CA</td>
						<td>123566<span class="iconfont countMess">&#xe65c;</span></td>
						<td class="handle"><span class="iconfont edit">&#xe681;</span><span class="iconfont delete">&#xe606;</span></td>
					</tr>
				</tbody>
			</table>
		</div>
		<script type="text/javascript" src="../js/jquery-1.12.4.js" ></script>
		<script type="text/javascript" src="../layer-v2.4/layer/layer.js" ></script>
		<script type="text/javascript" src="../js/common.js" ></script>
		<script>
			//________________________________________________________________________________________新增
			$(".add").click(function(){
				layer.open({
					type: 2,
					title: ['添加舱位等级','background-color:#6d6e72; color:#fff;font-size:14px;'],
					shadeClose: true,
					shade: [0.9,'#cfcfcf'],
					area: ['490px', '75%'],  
					content: ['../ak/addFlightCabin.html',"no"],// iframe的url，no代表不显示滚动条
					end:function(){
						//getAjax();
					}
						
				});
			})
			//________________________________________________________________________________________编辑
			$(".clear").delegate(".edit","click",function(){
				layer.open({
					type: 2,
					title: ['修改舱位等级','background-color:#6d6e72; color:#fff;font-size:14px;'],
					shadeClose: true,
					shade: [0.9,'#cfcfcf'],
					area: ['490px', '75%'],  
					content: ['../ak/editFlightCabin.html',"no"],// iframe的url，no代表不显示滚动条
					end:function(){
						//getAjax();
					}
						
				});
			})
			//————————————————————————————————————————————————————————————————————————————————————————删除
			$(".clear").delegate(".delete","click",function(){
				layer.confirm('确认删除该等级舱位？', {
					title:['温馨提示','background-color:#6d6e72;color:#fff;font-size:14px;'],
					shade: [0.9,'#cfcfcf'],
				   	btn: ['确定','取消'] //按钮
				}, function(){
					layer.msg('关闭中...', {icon: 16,shade: 0.01});
					$.ajax({
						type:type,
						url:url,
						async:true,
						dataType:"json",
						success:function(data){
							if(data.status=="1001"){
								layer.msg("关闭成功", {icon: 1},function(){
									getAjax();
								});
							}else{
								layer.msg(data.message, {icon: 2});
							}
						}			
					});		
					
				}, function(){
					
				});	
			})
		//__________________________________________________________________________________________折扣信息
		$(".clear").delegate(".countMess","click",function(){
			layer.open({
					type: 2,
					title: ['折扣信息','background-color:#6d6e72; color:#fff;font-size:14px;'],
					shadeClose: true,
					shade: [0.9,'#cfcfcf'],
					area: ['500px', '500px'],  
					content: ['../ak/countMess.html',"no"],// iframe的url，no代表不显示滚动条
					end:function(){
						//getAjax();
					}
						
				});
		})
		</script>		
	</body>
</html>
